﻿@model IEnumerable<OnlineBookstore.Models.shopInfo>

@{
	Layout = null;
}

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>后台管理</title>
    <link rel="stylesheet" href="~/conjs/global.css" />
    <link href="~/conjs/cityLayout.css" type="text/css" rel="stylesheet">
    <link rel="stylesheet" href="~/conjs/Site.css" />
    <style>
        :root {
            --primary-color: #2c3e50;
            --secondary-color: #ecf0f1;
            --accent-color: #e74c3c;
            --text-color: #34495e;
        }

        body {
            font-family: 'Segoe UI', system-ui, sans-serif;
            background: #f8f9fa;
        }

        /* 页眉样式 */
        #header {
            background: var(--primary-color);
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        #logotxt {
            color: white;
            font-size: 1.8rem;
            font-weight: 600;
        }

        /* 导航样式 */
        .nav {
            background-color: #34495e;
            padding: 10px 0;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

            .nav ul {
                list-style: none;
                padding: 0;
                margin: 0;
                display: flex;
                justify-content: center;
                flex-wrap: wrap;
                gap: 20px;
            }

            .nav li a {
                color: white;
                text-decoration: none;
                padding: 5px 10px;
                border-radius: 4px;
                transition: all 0.3s ease;
                font-size: 14px;
            }

             .nav li a:hover {
                    background-color: rgba(255,255,255,0.1);
                    text-decoration: underline;
                }

        .container {
            width: 95%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
           
           
        }
        .jumbotron {
            position: relative;
            width: 100%;
        }
        /* 主要内容 */
        #content {
            padding: 2rem;
            width: 80%;
            margin: 0 auto;
        }

        .dashboard-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
        }

        .dashboard-title {
            color: var(--primary-color);
            font-size: 1.8rem;
        }

        /* 表格样式 */
        .table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
        }

            .table th,
            .table td {
                padding: 1rem;
                text-align: left;
                border-bottom: 1px solid #ddd;
            }

            .table th {
                background-color: var(--secondary-color);
                color: var(--text-color);
            }

            .table tr:hover {
                background-color: #f5f5f5;
            }

        .action-btn {
            padding: 0.5rem 1rem;
            border-radius: 20px;
            text-decoration: none;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .edit-btn {
            background: #3498db;
            color: white;
        }

        .detail-btn {
            background: #9b59b6;
            color: white;
        }
        .head {
            background-color: lightskyblue;
            border-radius: 20px;
            text-decoration: none;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            align-items: center;
        }
        /* 页脚 */
        #footer {
            background: var(--primary-color);
            color: white;
            text-align: center;
            padding: 1.5rem;
            margin-top: 3rem;
            width: 100%;
            height: 100px;
            /* footer的高度一定要是固定值*/
            position: absolute;
            bottom: 0px;
        }

    </style>
</head>
<body>


    <div id="all">
        <!--页眉-->
        <!--未登录-->
        <div id="header">
            <div id="logo"><span id="logotxt">网上书城</span></div>
            <div id="loginmsg">
                @Html.ActionLink("退出", "Index", "ShopInfo", null, new { @class = "action-btn", style = "background: var(--accent-color);" })
            </div>
        </div>

        <div style="clear:both;"></div>
    </div>
    <nav class="nav">
        <div class="container">
            <ul>
                <li><a href="/OrderInfo/Index">订单设置</a></li>
                <li><a href="/CapitalAdvanc/Index">客户账户设置</a></li>
                <li><a href="/BookDetailsInfo/GetBookList">书籍设置</a></li>
                <li class="head"><a href="/ShopInfo/GetShopList">客户设置</a></li>
                <li><a href="/AdministrationInfo/GetAdmin">管理员设置</a></li>
            </ul>
        </div>
    </nav>


    <div class="jumbotron">
        <h2>网上书城后台管理----客户信息</h2>
        <div class="account">
            <div>
                <table class="table" width="800px" border="1px" style="border-spacing: 0;">
                    <tr>
                        <th>
                            <p>编号</p>
                        </th>
                        <th>
                            <p>账号</p>
                        </th>
                        <th>
                            <p>创建时间</p>
                        </th>
                        <th>
                            <p>姓名</p>
                        </th>
                        <th>
                            <p>客户电话</p>
                        </th>
                        <th>
                            <p>客户地址</p>
                        </th>
                        <th>
                            <p>客户地址2（详情）</p>
                        </th>
                        <th>
                            <p>密码</p>
                        </th>
                        <th>
                            <p>备注</p>
                        </th>
                        <th>
                            <p>操作</p>
                        </th>
                    </tr>

                    @foreach (var item in Model)
                    {
                        <tr>
                            <td>
                                @Html.DisplayFor(modelItem => item.ShopCode)
                            </td>
                            <td>
                                @Html.DisplayFor(modelItem => item.ShopLogin)
                            </td>
                            <td>
                                @Html.DisplayFor(modelItem => item.ShopDate)
                            </td>
                            <td>
                                @Html.DisplayFor(modelItem => item.ShopName)
                            </td>
                            <td>
                                @Html.DisplayFor(modelItem => item.ShopPhone)
                            </td>
                            <td>
                                @Html.DisplayFor(modelItem => item.ShopRegio)
                            </td>
                            <td>
                                @Html.DisplayFor(modelItem => item.ShopAddress)
                            </td>
                            <td>
                                @Html.DisplayFor(modelItem => item.ShopPassword)
                            </td>
                            <td>
                                @Html.DisplayFor(modelItem => item.ShopRemark)
                            </td>
                            <td>
                                @Html.ActionLink("修改", "UpdateShop", new { id = item.Id }) |
                                @Html.ActionLink("添加", "AddShopInfo", new { id = item.Id }) |
                                @Html.ActionLink("删除", "DelShop", new { id = item.Id })
                            </td>
                        </tr>
                    }

                </table>

            </div>
        </div>
    </div>

    <!--页脚-->
    <div id="footer">
        <hr style="margin: 0px;" /> 网上书城---MVC
    </div>


    <script type="text/javascript" src="~/conjs/bootstrap.js"></script>
    <script type="text/javascript" src="~/conjs/jquery-3.3.1.js"></script>
    <script type="text/javascript" src="~/conjs/jquery-3.4.1.js"></script>
</body>

